import { RouteRecordRaw } from 'vue-router';

export default {
  path: '/aiconfig',
  name: 'aiconfig',
  redirect: '/aiconfig/pay',
  component: () => import('@/layout/index.vue'),
  meta: {
    title: 'AI配置',
    icon: 'el-icon-share',
    sort: 6,
    roles: ['admin', 'adminSp']
  },
  children: [
    {
      path: '/aiconfig/pay',
      name: 'pay',
      component: () => import('@/views/aiconfig/pay/index.vue'),
      meta: {
        title: '用户充值配置',
        icon: 'el-icon-link'
      }
    },
    {
      path: '/aiconfig/func',
      name: 'func',
      component: () => import('@/views/aiconfig/func/index.vue'),
      meta: {
        title: '功能配置',
        icon: 'el-icon-link'
      }
    },
    {
      path: '/aiconfig/aiorders',
      name: 'aiorders',
      component: () => import('@/views/aiconfig/aiOrders/index.vue'),

      meta: {
        title: 'AI使用记录',
        icon: 'el-icon-paperclip'
        // roles: ['adminSp', 'admin']
      }
    }
  ]
} as RouteRecordRaw;
